package vn.bum.utils;

import org.apache.commons.lang.StringUtils;

public class TextExUtil {
	public static String clearVNChars(String string) {
		string = StringUtils.replaceChars(string, FULL_SIGN, UNSIGN);
		string = StringUtils.replaceChars(string, "̣́̀̉̃", "");
		return string;
	}

	private static final String UNSIGN 		= "aaaaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAddDDeeeeeeeeeeeeEEEEEEEEEEEEiiiiiiIIIIIIooooooooooooooooooOOOOOOOOOOOOOOOOOOuuuuuuuuuuuuUUUUUUUUUUUUyyyyyyYYYYYY";
	private static final String FULL_SIGN 	= "âấẩầậẫăắẳằặẵaáảàạãÂẤẨẦẬẪĂẮẲẰẶẴAÁẢÀẠÃdđDĐêếểềệễeéẻèẹẽÊẾỂỀỆỄEÉẺÈẸẼiíỉìịĩIÍỈÌỊĨoóỏòọõôốổồộỗơớởờợỡOÓỎÒỌÕÔỐỔỒỘỖƠỚỞỜỢỠuúủùụũưứửừựữUÚỦÙỤŨƯỨỬỪỰỮyýỷỳỵỹYÝỶỲỴỸ";
}